home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.misc
- Path: netcom.com!dkaupp
- From: dkaupp@netcom.com (Blitter)
- Subject: Re: Amigados - checking for a file
- Message-ID: <dkauppDpFLpD.J4D@netcom.com>
- Organization: >nil:
- X-Newsreader: TIN [version 1.2 PL1]
- References: <401.6670T240T431@nibelung.demon.co.uk>
- Date: Sat, 6 Apr 1996 08:17:37 GMT
- Sender: dkaupp@netcom19.netcom.com
-
- Barry Shilliday (barry.1@nibelung.demon.co.uk) wrote:
- : What would be the format to check the existence of a file in a script for dos?
- : I would have thought something like this:
-
- : If EXISTS blah:filename
- : dowhatever
- : else
- : dothatinstead
- : endif
- : endif
-
- : but this doesn't work.
-
- I'm not sure if you mean the else doesn't work ( I can't check tha
- manual, in the middle of moving).
-
- But here is (part of a)script to start a mud I have.
-
- <start>
- LAB Begin
- date >> logfile
- /src/Envy20 >> logfile
- ; If someone runs shutdown the shutdown.txt file is created,
- ; otherwise it was just a reboot and falls thru the if.
- if exists shutdown.txt
- delete shutdown.txt
- quit 0
- endif
- wait 30
- skip Begin back
- <end>
-
- Hope that helps.
-
- Regards.
-
- --
- Dave dkaupp@netcom.com // Kell the Atheist
- AMIGA Technologies Homepage //The Amiga Web Directory kills 12, claims
- www.amiga.de \\//www.cucug.org/amiga.html Darwin made me do it.
- Quote from PC friend:'Are you on the Net?' 'Yes.' 'And you have music playing
- on your computer!?'.... Doh!!! Ya that and a few other things running..
-